<template>
  <div class="orderDetails">

    <div class="zhanwei"></div>
    <div class="orderBody">
      <img mode="aspectFit" src="../../../static/mine/book.jpg" alt="">
      <div class="info">
        <div class="bookName">平视姚明</div>
        <div class="authorName">
          <span>王猛</span>
          <span class="num">x1</span>
        </div>
        <div class="pri">
          <span>￥30.10</span>
          &nbsp;
          <span>原价60.20</span>
        </div>
      </div>
    </div>
    <div class="sumPri">
      <div>
        <span>商品总额</span>
        <span>60.20</span>
      </div>
      <div>
        <span>优惠</span>
        <span>-￥30.10</span>
      </div>
      <div>
        <span>运费</span>
        <span>+￥6.00</span>
      </div>
      <div>
        <span>红包</span>
        <span>-￥3.00</span>
      </div>
      <div class="sum">
        <span>合计</span>
        <span>￥33.10</span>
      </div>
    </div>
    <div class="zhanwei"></div>
    <div class="consignee">
      <div>
        <span>订单编号</span>
        <span>1000000000000</span>
      </div>
      <div>
        <span>收货人</span>
        <span>朝阳群众</span>
      </div>
      <div>
        <span>电话号码</span>
        <span>15811111111</span>
      </div>
      <div>
        <span>收货地址</span>
        <span>北京市朝阳区</span>
      </div>
    </div>
    <div class="orderFooter">
      <button class="default" size="mini" hover-class="none">联系客服</button>
      <button class="default" size="mini" hover-class="none">取消订单</button>
      <!-- <button class='warn' size="mini" hover-class="none">确认收货</button>
          <button class='warn' size="mini" hover-class="none">去评价</button> -->
      <button class='warn' size="mini" hover-class="none">付款</button>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      verticalCurrent: 2
    }
  }
}
</script>
<style lang="scss">
.orderDetails {
    padding-bottom: 100rpx;
    background-color: #fff;
    .zhanwei {
        height: 18rpx;
        background-color: #eee;
    }
    .orderBody {
        margin: 0 auto;
        padding: 18rpx 0;
        width: 714rpx;
        display: flex;
        height: 125rpx;
        border-bottom: 1rpx solid #eee;
        overflow: hidden;
        img {
            width: 90rpx;
            max-height: 125rpx;
        }
        .info {
            margin-left: 30rpx;
            flex-grow: 1;
            height: 125rpx;
            .bookName {
                height: 40rpx;
                font-size: 32rpx;
                font-weight: 900;
                color: #000;
            }
            .authorName {
                display: flex;
                justify-content: space-between;
                line-height: 40rpx;
                font-size: 24rpx;
                color: #666;
            }
            .pri {
                height: 45rpx;
                vertical-align: bottom;
                text-align: right;
                & > span:first-child {
                    color: #c68452;
                    font-size: 32rpx;
                }
                & > span:last-child {
                    color: #666;
                    font-size: 24rpx;
                }
            }
        }
    }
    .sumPri {
        padding: 18rpx;
        font-size: 32rpx;
        div {
            display: flex;
            padding-bottom: 18rpx;
            line-height: 48rpx;
            justify-content: space-between;
            color: #666;
        }
        .sum {
            padding-bottom: 0;
            line-height: 80rpx;
            color: #000;
            font-size: 20px;
            border-top: 1rpx solid #ddd;
        }
    }
    .consignee {
        padding: 18rpx;
        line-height: 48rpx;
        font-size: 14px;
        color: #333;
        div {
            display: flex;
            & > span:first-child {
                flex-basis: 70px;
                flex-shrink: 0;
            }
        }
    }
    .orderFooter {
        position: fixed;
        bottom: 0;
        box-sizing: border-box;
        padding: 18rpx;
        width: 100%;
        text-align: right;
        font-size: 32rpx;
        opacity: 1;
        background-color: #fff;
        border-top: 1rpx solid #ddd;
        .default {
            margin-left: 18rpx;
            vertical-align: bottom;
            background-color: #fff;
        }
        .warn {
            margin-left: 18rpx;
            vertical-align: bottom;
            background-color: #c68452;
            color: #fff;
        }
    }
}
</style>

